home *** CD-ROM | disk | FTP | other *** search
- property NumCanale, nonpremuto, premuto, evidente, CursorUP, CursorDOWN
-
- on birth me, c, np, pr, ev, cu, cd
- set the NumCanale of me to c
- set the nonpremuto of me to np
- set the premuto of me to pr
- set the evidente of me to ev
- set the CursorUP of me to cu
- set the CursorDOWN of me to cd
- return me
- end
-
- on abbassa me
- global NumTasto, LastNumTasto
- set LastNumTasto to NumTasto
- set the cursor of sprite the NumCanale of me to the CursorDOWN of me
- set the puppet of sprite the NumCanale of me to 1
- set the member of sprite the NumCanale of me to member the premuto of me
- updateStage()
- end
-
- on alza me
- global NumTasto, LastNumTasto
- set the puppet of sprite the NumCanale of me to 0
- updateStage()
- if NumTasto = LastNumTasto then
- set the cursor of sprite the NumCanale of me to the CursorUP of me
- tastimain()
- exit
- end if
- set LastNumTasto to 0
- end
-
- on evidenzia me
- global NumTasto, LastEvidente
- set the cursor of sprite the NumCanale of me to the CursorUP of me
- set the puppet of sprite the NumCanale of me to 1
- set the member of sprite the NumCanale of me to member the evidente of me
- set LastEvidente to NumTasto
- updateStage()
- end
-
- on disevidenzia me
- set the puppet of sprite the NumCanale of me to 0
- set the cursor of sprite the NumCanale of me to 0
- updateStage()
- end
-